#ifndef ARTIKEL_HXX
#define ARTIKEL_HXX

#include <string>
#include <odb/core.hxx>

#pragma db object

class artikel {
public:

    artikel(const std::string& title, const std::string& desc) : title_(title), desc_(desc) {
    }

    const std::string&
    title() const {
        return title_;
    }

    const std::string&
    desc() const {
        return desc_;
    }


private:
    friend class odb::access;

    artikel() {
    }

#pragma db id auto
    unsigned long id_;

    std::string title_;
    std::string desc_;

};

#endif // ARTIKEL_HXX
